import React, {useEffect} from 'react';
import {Input, Button} from 'antd';

export default function () {

    useEffect(() => {
        window.opener?.document?.addEventListener?.('DOMContentLoaded', function () {
            console.log('opener loaded')
        })
    }, [])

    return (
        <div>
            <div>MyTest22</div>
            <div>
                <Input/>
            </div>
            <div>
                <Button onClick={() => {
                    console.log('opener', window.opener.ecodeSDK)
                }}
                >TTT</Button>
                <Button onClick={() => {
                    opener.location.reload()
                }}
                >t2</Button>
            </div>
        </div>
    )
}